package javax.microedition.lcdui.game;

import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Graphics;

public abstract class GameCanvas extends Canvas {
  public static final int GAME_B_PRESSED = 1024;

  public static final int UP_PRESSED = 2;

  public static final int GAME_C_PRESSED = 2048;

  public static final int FIRE_PRESSED = 256;

  public static final int RIGHT_PRESSED = 32;

  public static final int LEFT_PRESSED = 4;

  public static final int GAME_D_PRESSED = 4096;

  public static final int GAME_A_PRESSED = 512;

  public static final int DOWN_PRESSED = 64;

  protected GameCanvas(boolean paramBoolean) {
    CurGraphics = Graphics.CurrentGraphics;
  }

  protected Graphics getGraphics() {
    return CurGraphics;
  }

  public int getKeyStates() {
    return m_keyStates;
  }

  public void flushGraphics() {
    flushGraphics(0,0,Width,Height);
  }

  public void flushGraphics(int paramInt1, int paramInt2, int paramInt3, int paramInt4) {
    Repaint(paramInt1, paramInt2, paramInt3, paramInt4);
  }

  public void paint(Graphics paramGraphics) {
    CurGraphics = paramGraphics;
  }
}

/*
 * Location:
 * C:\Java\rt\javax\microedition\midp_2.1.jar!\javax\microedition\lcdui\game\
 * GameCanvas.class
 * Java compiler version: 3 (47.0)
 * JD-Core Version: 1.1.3
 */